var tipsBox = function(msg,long){
	$('.tips-outer	').remove();
	(msg == undefined) ? msg='':msg=msg;
	(long == undefined) ? msg=2000:long=long;
	var _tips_html = '<div class=tips-outer><span class=tips-box>'+msg+'</span></div>';
	$("body").before(_tips_html);
	loaction('.tips-box');
	setTimeout(function(){
		$('.tips-outer').remove();
	}, long);
}

var loaction = function(className){
	var _height = $(window).height();
	var _width = $(window).width();
	var _left =(_width/2)-$(className).width()/2;
	$(className).css({top:(_height/2),left:_left});
}